package main

import (  
    "bytes"  
    "fmt"  
)  

var res =""
 var buffer bytes.Buffer

func qm(num int){
fmt.Println(num%2)
	var modres int
	if num==0{
		return
	}else
	{
		modres = num/2
	}
	qm(modres)
	buffer.WriteString(string(num%2))  
}

//递归
func main() {


	qm(100)
	
	fmt.Println("转化的二进制为：", buffer.String())
	
}

